<#include "config.ftl">
<#include "function.ftl">

<#assign base=(rc.getContextPath())!''>

<#-- 局部刷新分页信息1(不带具体页码)  begin -->
<#macro turnPage pagingList id="" contentId="" path="" params="" js="false" >
<#local pageCount=pagingList.pageCount>
<#local rowCount=pagingList.rowCount>
<#local pageNum=pagingList.pageNum>
<#local pageSize=pagingList.pageSize>
<#local id = id>
<#if rowCount == 0>
	<#if useFlag?exists>
	<div style="border:1px solid #666;padding:2 5 2 5;background:#efefef;color:#333">没有相关记录</div>
	<#else>
	<#assign useFlag = 1>
	</#if>
<#else>

	<table width="100%">
		<tr>	
			<td width="70%" style="text-align:left;">
				<ul class="pageNoNum">
				
					<#if pageNum == 1>
						<li id="${id}-first-none" class="pageDisable">
							<img src="${base}/res/css/components/images/paging/arrow_x_l_h.gif"/>
						</li>
						<li id="${id}-pre-none" class="pageDisable">
							<img src="${base}/res/css/components/images/paging/arrow_x_l.gif"/>			
						</li>			
					<#else>
						<li id="${id}-first-${pageNum}">
							<img src="${base}/res/css/components/images/paging/arrow_s_l_h.gif"/>
						</li>
						
						<li id="${id}-pre-${pageNum}">
							<img src="${base}/res/css/components/images/paging/arrow_s_l.gif"/>			
						</li>
					</#if>
					
					
					<li id="${id}-direct-none" class="pageDisable">
					
						跳转至<input type="text" 
						
						<#if js=="true"><#-- 否则在页面中写翻页触发事件。带条件查询的分页需要自己在页面中写。-->
						onchange="directToPage($(this), '${pageNum}', '${contentId}', '${path}', '${params}', '{}')"
						</#if>
						
						/>页 
						
					</li>	
					
					
					<#if pageNum == pageCount>
						<li id="${id}-next-none" class="pageDisable">
							<img src="${base}/res/css/components/images/paging/arrow_x_r.gif"/>
						</li>
						<li id="${id}-last-none" class="pageDisable">
							<img src="${base}/res/css/components/images/paging/arrow_x_r_f.gif"/>
						</li>	
					<#else>
						<li id="${id}-next-${pageNum}-${pageCount}">
							<img src="${base}/res/css/components/images/paging/arrow_s_r.gif"/>
						</li>
						<li id="${id}-last-${pageNum}-${pageCount}">
							<img src="${base}/res/css/components/images/paging/arrow_s_r_f.gif"/>
						</li>	
					</#if>
				</ul>
			</td>
			<td width="30%" style="text-align:right;">		
				 共 ${rowCount} 条记录 &nbsp;&nbsp; 当前第 ${pageNum} / ${pageCount}页			
			</td>
		</tr>
	</table>
	
	<#if js=="true"><#-- 否则在页面中写翻页触发事件。带条件查询的分页需要自己在页面中写。-->
	<script type="text/javascript">
		
		$("#${id} li").click(function(){
			
			turnPage($(this), '${id}', '${contentId}', '${path}', '${params}', '{}');
				
			return false;
			
		});

	</script>
	</#if>
	
</#if>
	
</#macro>
<#-- 局部刷新分页信息  end -->